﻿using Ross.OA.EntityFramework.Model;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ross.OA.EntityFramework
{
    public partial class RossOADbContext : DbContext
    {
        public RossOADbContext()
            : base("name=RossOADbContext")
        {
            //禁用自动迁移，并告诉EF不要尝试将数据库模式与代码模型同步
            Database.SetInitializer<RossOADbContext>(null);
        }
        public virtual IDbSet<Depart> Depart { get; set; }
        public virtual IDbSet<Employee> Employee { get; set; }
        public virtual IDbSet<POPlans> POPlans { get; set; }
        public virtual IDbSet<POHeads> POHeads { get; set; }
        public virtual IDbSet<PODetails> PODetails { get; set; }
        public virtual IDbSet<POReciveDetail> POReciveDetail { get; set; }
        public virtual IDbSet<Log_ApiLog> Log_ApiLog { get; set; }


        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
        }
    }
}
